<?php

include_once ("../dao/introductionDAO.php");

function countNumOfIntroductionByName($keyword) {
    return countByName($keyword);
}

function getIntroductionBy($keyword, $start_position, $row_per_page) {
    return findBy($keyword, $start_position, $row_per_page);
}

function getIntroductionById($insID) {
    return loadIntroductionByID($insID);
}

function updateIntroduction($insID, $name) {
    return update($insID, $name);
}

function addIntroduction($name) {
    return insert($name);
}

function deleteIntroduction($insID) {
    return delete($insID);
}

function getAllIntroduction() {
    return selectAll();
}

function getFirstRowOfIntroduction(){
	return findFirstRowOfIntroduction();	
}
?>
